package com.ybbase.framework.model.po.system;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 组织机构岗位
 * </p>
 *
 * @author cg
 * @since 2019-11-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("sys_organ_post")
@ApiModel(value="OrganPost对象", description="组织机构岗位")
public class OrganPost extends Model<OrganPost> {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "组织机构编码")
    private Integer organId;

    @ApiModelProperty(value = "岗位编码")
    private Integer postId;


    @Override
    protected Serializable pkVal() {
        return this.organId;
    }

}
